package com.shenmazong.serverwebpoem.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 田不平
 * @project server-web-poem
 * @date 2020/4/10 4:32 PM
 * http://www.shenmazong.com
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ObUserRaceScore implements Comparable<ObUserRaceScore>{
    private Integer topno;
    private Integer userid;
    private String nickname;
    private Integer score;

    @Override
    public int compareTo(ObUserRaceScore o) {
        // TODO Auto-generated method stub
        return score - o.score;
    }
}
